import request from '@/utils/request'

// 查询支付流水列表
export function listTransaction(query) {
    return request({
        url: '/tenant/transaction/list',
        method: 'get',
        params: query
    })
}

// 查询支付流水详细
export function getTransaction(id) {
    return request({
        url: '/tenant/transaction/' + id,
        method: 'get'
    })
}

// 新增支付流水
export function addTransaction(data) {
    return request({
        url: '/tenant/transaction',
        method: 'post',
        data: data
    })
}

// 修改支付流水
export function updateTransaction(data) {
    return request({
        url: '/tenant/transaction',
        method: 'put',
        data: data
    })
}

// 删除支付流水
export function delTransaction(id) {
    return request({
        url: '/tenant/transaction/' + id,
        method: 'delete'
    })
}
